package selef.xiafan.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import selef.xiafan.entity.system.SysRolePermission;

import java.util.List;

/**
 * @author xiafan
 * @version 1.0
 * @date 2021/7/1 23:18
 */
public interface SysRolePermissionDao extends JpaRepository<SysRolePermission, Integer> {
    List<SysRolePermission> findAllByRidIn(List<Integer> rids);

    List<SysRolePermission> findAllByRid(Integer id);

    void deleteAllByRid(Integer rid);

    void deleteAllByPid(Integer pid);
}
